<template>
    <el-container>
        <el-header><my-header @clickFather="clickFather"></my-header></el-header>
        <el-container>
            <el-aside :width="isCollapse ? '60px' : '200px'"><my-aside :isCollapse="isCollapse"></my-aside></el-aside>
            <el-main>
                <tag-menu></tag-menu>
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>
  
  <script setup>
    import MyHeader from '@/views/MyHeader.vue'
    import MyAside from '@/views/MyAside.vue'
    import TagMenu from '@/views/TagMenu.vue'
    import { ref } from 'vue'
    const isCollapse = ref(false)
    function clickFather(params) {
        isCollapse.value = params
    }
  </script>
  
  
  <style scoped>
    .el-container{
        height: 100%;
    }
  
    .el-header{
        background-color: #fff;
    }
  
    .el-main{
        padding: 15px;
        background-color: lemonchiffon;
    }
  </style>